// @ts-ignore
import axiosInstance from "~/api";

export const getAllCategories = () => {
    return axiosInstance.get('/categories/all')
}

export const getArticlesByCategoryId = (params: any) => {
    return axiosInstance.get('/articles/categoryId', {params: params})
}
